Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [project] Project information could not be obtained correctly #1042

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

Kakueeen
Copy link
Contributor

@Kakueeen Kakueeen commented Jan 6, 2025

@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • GeneratorInfo 结构体中的 projectInfo 成员变量应该使用 const 修饰符,以避免不必要的修改。
  • findGeneratorInfo 函数返回的 GeneratorInfo 对象可能包含未初始化的成员变量,应该检查并处理这种情况。
  • removeRootItem 函数中,应该检查 info.item 是否为空,以避免潜在的空指针解引用。
  • projectItemsCreatedhandleItemUpdated 函数中,应该检查 info.item 是否为空,以避免潜在的空指针解引用。
  • projectItemsCreated 函数中的 rootItem->setDatainfo.item->setData 应该使用 info.item 而不是 rootItem,以保持一致性。
  • handleItemUpdated 函数中的 prjSrv->restoreExpandState(item) 应该检查 item 是否为空,以避免潜在的空指针解引用。

是否建议立即修改:

@deepin-mozart deepin-mozart merged commit 99d5914 into linuxdeepin:master Jan 6, 2025
9 of 10 checks passed
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepin-mozart, Kakueeen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants